<template>
  <div id="Er">
    <h3 class="h3">热门搜索</h3>
    <div class="Tag">
      <van-tag
        type="primary"
        size="large"
        color="#f5f6fa"
        text-color="#7d7e83"
        class="Tags"
        v-for="time in changeEr"
        :key="time.id"
        >{{ time.site }}
      </van-tag>
    </div>
    <div class="imgs"><img src="../../assets/Search_imgs/search3.jpg" /></div>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "Er",
  data() {
    return {
      msg: [],
    };
  },
  props: ["type"],
  computed: {
    ...mapState(["Rr"]),
    changeEr: function () {
      return this.Rr.splice(0, 7);
    },
  },
  created() {},
};
</script>

<style scoped>
.h3 {
  height: 0.38rem;
  font-size: 0.13rem;
  color: #787878;
  padding: 0 0.14rem;
  line-height: 0.38rem;
}
.Tags {
  font-size: 12px;
  margin: 0.08rem;
}
.Tag {
  padding: 0 0.13rem;
}
.imgs {
  padding: 0 0.13rem;
}
</style>
